package com.sakura.flux.feign.fallback;

import com.sakura.flux.entity.User;
import com.sakura.flux.feign.UserClient;
import com.sakura.flux.result.R;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {
    @Override
    public R<User> userInfo() {

        R<User> r = new R<User>();
        r.setCode(500);
        r.setMsg("userInfo fail");
        r.setSuccess(false);
        return r;
    }
}
